<!--  -->
<template>
  <section class="m-container">
    <dl>
      <dt>
        <nuxt-link to='/my'>猫眼电影</nuxt-link>
      </dt>
      <dd>
        <nuxt-link to='/my'>正在热映</nuxt-link>
      </dd>
      <dd>
        <nuxt-link to='/my'>即将上映</nuxt-link>
      </dd>
      <dd class="all">
        <nuxt-link to='/my'>全部 ></nuxt-link>
      </dd>
      <!-- 不是这个 -->
    </dl>
    <div>
      <a href="">
        <img
          src="//p0.meituan.net/movie/c106904da68edd848afd4a320976d051346321.jpg@214w_297h_1e_1c"
          class="image film-img"
        >
        <img
          src="//s0.meituan.net/bs/fe-web-meituan/25e6614/img/imax3d.png"
          class="film-mark"
          style="display: inline-block;"
        >
        <p class="code">观众评<span>9.5</span></p>
        <p class="name">海王 </p>
        <p class="buy">购票</p>
      </a>
      <a href="">
        <img
          src="//p0.meituan.net/movie/c106904da68edd848afd4a320976d051346321.jpg@214w_297h_1e_1c"
          class="image film-img"
        >
        <img
          src="//s0.meituan.net/bs/fe-web-meituan/25e6614/img/imax3d.png"
          class="film-mark"
          style="display: inline-block;"
        >
        <p class="code">观众评<span>9.5</span></p>
        <p class="name">海王 </p>
        <p class="buy">购票</p>
      </a> <a href="">
        <img
          src="//p0.meituan.net/movie/c106904da68edd848afd4a320976d051346321.jpg@214w_297h_1e_1c"
          class="image film-img"
        >
        <img
          src="//s0.meituan.net/bs/fe-web-meituan/25e6614/img/imax3d.png"
          class="film-mark"
          style="display: inline-block;"
        >
        <p class="code">观众评<span>9.5</span></p>
        <p class="name">海王 </p>
        <p class="buy">购票</p>
      </a> <a href="">
        <img
          src="//p0.meituan.net/movie/c106904da68edd848afd4a320976d051346321.jpg@214w_297h_1e_1c"
          class="image film-img"
        >
        <img
          src="//s0.meituan.net/bs/fe-web-meituan/25e6614/img/imax3d.png"
          class="film-mark"
          style="display: inline-block;"
        >
        <p class="code">观众评<span>9.5</span></p>
        <p class="name">海王 </p>
        <p class="buy">购票</p>
      </a> <a href="">
        <img
          src="//p0.meituan.net/movie/c106904da68edd848afd4a320976d051346321.jpg@214w_297h_1e_1c"
          class="image film-img"
        >
        <img
          src="//s0.meituan.net/bs/fe-web-meituan/25e6614/img/imax3d.png"
          class="film-mark"
          style="display: inline-block;"
        >
        <p class="code">观众评<span>9.5</span></p>
        <p class="name">海王 </p>
        <p class="buy">购票</p>
      </a>
    </div>
  </section>
</template>

<script>
export default {
  data() {
    return {};
  },

  components: {},

  computed: {},

  methods: {}
};
</script>
<style lang='scss' scoped>
.m-container {
  width: 1190px;
  background-color: #fff;
  margin: 40px auto;
  dl {
    width: 100%;
    height: 44px;
    line-height: 44px;
    border-top-right-radius: 5px;
    border-top-left-radius: 5px;
    box-sizing: border-box;
    font-size: 14px;
    color: #fff;
    background: linear-gradient(
        to right,
        rgb(250, 60, 104) 2%,
        rgb(254, 70, 77) 97%
      )
      rgb(250, 60, 104);
    & > * {
      float: left;
    }
    a {
      color: #fff;
    }
    dt {
      font-size: 18px;
      margin-left: 13px;
      margin-right: 10px;
      position: relative;
      float: left;
      padding: 0 5px;
      text-transform: uppercase;
      cursor: pointer;
    }
    dd {
      padding: 0 5px;
    }
    .all {
      float: right;
      padding-right: 20px;
    }
  }
  div {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    box-sizing: border-box;
    border-left: 1px solid #e5e5e5;
    border-right: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
    padding: 5px;

    a {
      margin-top: 10px;
      height: 328px;
      width: 20%;
      padding: 10px;
      padding-bottom: 0;
      position: relative;
      box-sizing: border-box;
      &:hover {
        background: #f4f4f4;
        -webkit-transition: background-color 0.5s;
        -ms-transition: background-color 0.5s;
        transition: background-color 0.5s;
        border-radius: 4px;
      }
      img {
        border-radius: 4px;
      }
      .film-mark {
        position: absolute;
        top: 17px;
        z-index: 99;
        left: 3px;
        height: 20px;
        box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.2);
        width: auto;
        border: 0;
      }
      p {
        position: absolute;
        z-index: 99;
        color: #fff;
        padding-left: 10px;
      }
      .code {
        top: 257px;
        font-size: 12px;

        font-weight: 500;
        span {
          font-size: 16px;
          color: #fd9827;
          font-weight: 500;
          padding: 0 10px;
        }
      }
      .name {
        top: 281px;
      }
      .buy {
        right: 30px;
        top: 276px;

        background: #ff4949;
        border-radius: 100px;
        padding: 2px 12px 3px;
        font-size: 14px;
        cursor: pointer;
        line-height: 20px;
        text-align: center;
      }
    }
  }
}
</style>
